package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.*;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/27 11:21
 */
public interface PersonalDao {

    //获取用户的需求
    List<Map<String,Object>> getDemandByCustomerId(String customerId);

    //添加需求
    int saveDemand(Demand demand);

    //获取需求分类
    List<Map<String,Object>> getDemandCategory();

    //申请店铺
    int applyForShop(Shop shop);
    
    //获取店铺分类
    List<Map<String,Object>> getShopCategory();

    //用户反馈
    int saveCustomerFeedBack(CustomerFeedback feedback);

    //用户的优惠券
    List<Map<String,Object>> getCustomerGift(String customerId, Integer status, Integer start, Integer size);

    //用户的优惠券的总数量
    Integer getCustomerGiftAmount(String customerId, Integer status);

    //验证用户是否领取过
    Integer verifiCustomerGift(String customerId, String giftId);

    //领取优惠券
    int saveCustomerGift(CustomerGift customerGift);

    //保存评论
    int saveEvaluate(CustomerEvaluate evaluate);
    
    //获取用户的积分记录
    List<Map<String,Object>> getCustomerIntegralInfo(String customerId);
}
